package com.example.module.shoppingCart.DO;


import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import java.util.Date;

/**
 * @author ghy
 * @date 2025/08/29
 * @description 更新购物车商品数量DO
 */
@Data
@Entity
@Table(name = "shoppingcart")
@Validated
public class CartUpdateDO {
    /*
     * 购物车Id
     * */
    @Id
    @Column(name = "shopping_cart_id")
    private Long shoppingCartId;

    /*
     * 商品数量
     * */
    @Column(name = "goods_purchase_quantity")
    private String goodsPurchaseQuantity;

    /*
    * 更新购物车时间
    * */
    @Column(name = "shopping_update_time")
    private Date shoppingUpdateTime;

    /*
     * Getter and Setter
     * */

    public Long getShoppingCartId() {
        return shoppingCartId;
    }

    public void setShoppingCartId(Long shoppingCartId) {
        this.shoppingCartId = shoppingCartId;
    }

    public String getGoodsPurchaseQuantity() {
        return goodsPurchaseQuantity;
    }

    public void setGoodsPurchaseQuantity(String goodsPurchaseQuantity) {
        this.goodsPurchaseQuantity = goodsPurchaseQuantity;
    }

    public Date getShoppingUpdateTime() {
        return shoppingUpdateTime;
    }

    public void setShoppingUpdateTime(Date shoppingUpdateTime) {
        this.shoppingUpdateTime = shoppingUpdateTime;
    }
}
